package com.lm.hutool.hash;

import cn.hutool.crypto.digest.DigestUtil;

import java.io.File;

public class FileHashExample {
    public static void main(String[] args) {
        File file = new File("example.txt");

        System.out.println("File MD5: " + DigestUtil.md5(file));
        System.out.println("File SHA-256: " + DigestUtil.sha256(file));
    }


}